﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Template.Master" AutoEventWireup="true" CodeBehind="DoanhThuTheoDoanhNghiep.aspx.cs" Inherits="FastDeal.DoanhThuTheoDoanhNghiep" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <style type="text/css">
        .style2
        {
            width: 42%;
        }
        .style3
        {
            width: 76px;
        }
        .style4
        {
            width: 102px;
        }
        .style6
        {
            width: 100%;
        }
        .style7
        {
        }
        .style8
        {
            width: 211px;
        }
        .style9
        {
            width: 209px;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder2" runat="server">
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <asp:Panel ID="Panel1" runat="server" Height="1000px">
       <div align="center">      

    <p>
        &nbsp;</p>
    <p>
        Thống kê Doanh Thu Theo doanh nghiệp :</p>
    <p>
        <br />
    </p>
    <table class="style6">
        <tr>
            <td class="style8">
        Chọn Doanh Nghiệp</td>
            <td align="left">
                <asp:DropDownList ID="ddlDoanhNghiep" runat="server">
        </asp:DropDownList>
            </td>
        </tr>
        <tr>
            <td class="style8">
                &nbsp;</td>
            <td align="left">
                &nbsp;</td>
        </tr>
        <tr>
            <td class="style8">
                &nbsp;</td>
            <td align="left">
        <asp:Button ID="btnDoanhThu" runat="server" onclick="btnDoanhThu_Click" 
            Text="Thống Kê" CssClass="green button" />
            </td>
        </tr>
        <tr>
            <td class="style7" colspan="2">
        <asp:Label ID="lbTen" runat="server" Font-Bold="False" ForeColor="Blue" 
            Text="Thống Kê Doanh Nghiệp"></asp:Label>
            </td>
        </tr>
    </table>
    <asp:GridView ID="gvDoanhThu" runat="server" AutoGenerateColumns="False" 
        CellPadding="3" 
        Height="212px" 
        Width="312px" 
        GridLines="None" BackColor="White" BorderColor="White" BorderStyle="Ridge" 
        BorderWidth="2px" CellSpacing="1">
    <Columns>
        <asp:TemplateField HeaderText="Ngày">
            <ItemTemplate>
                <asp:Label ID="lbNgay" runat="server" Text='<%# Bind("NgayDatMua") %>'></asp:Label>
            </ItemTemplate>
            <ItemStyle Width="600px" />
        </asp:TemplateField>
        <asp:TemplateField HeaderText="Tổng Tiền">
            <ItemTemplate>
                <asp:Label ID="lbTongTien" runat="server" 
                        Text='<%# Bind("TongTien") %>'></asp:Label>
            </ItemTemplate>
            <ItemStyle Width="200px" />
        </asp:TemplateField>
    </Columns>
    <FooterStyle BackColor="#C6C3C6" ForeColor="Black" />
    <HeaderStyle BackColor="#4A3C8C" Font-Bold="True" ForeColor="#E7E7FF" />
    <PagerStyle BackColor="#C6C3C6" ForeColor="Black" HorizontalAlign="Right" />
    <RowStyle BackColor="#DEDFDE" ForeColor="Black" />
    <SelectedRowStyle BackColor="#9471DE" Font-Bold="True" ForeColor="White" />
    <SortedAscendingCellStyle BackColor="#F1F1F1" />
    <SortedAscendingHeaderStyle BackColor="#594B9C" />
    <SortedDescendingCellStyle BackColor="#CAC9C9" />
    <SortedDescendingHeaderStyle BackColor="#33276A" />
</asp:GridView>
    <p>
        <table class="style2">
            <tr>
                <td class="style9">
                    <asp:Label ID="Label1" runat="server" Text="Tổng Doanh Thu"></asp:Label>
                </td>
                <td>
                    <asp:Label ID="lbTongThanhTien" runat="server" Text="Tổng Tiền"></asp:Label>
                </td>
            </tr>
        </table>
    </p>

    </div>
    </asp:Panel>

</asp:Content>
